package exercises.Charpter7;

import static net.mindview.util.Print.*;

class Component1{
	Component1(){
		print("Component1 constructed!");
	}
}

class Component2{
	Component2(){
		print("Component2 constructed!");
	}
}

class Component3{
	Component3(){
		print("Component3 constructed!");
	}
}

class root{
	Component1 a;
	Component2 b;
	Component3 c;
	root(){
		a = new Component1();
		b = new Component2();
		c = new Component3();
		print("root constructed!");
	}
}

class Stem extends root{
	Stem(){
		print("Stem constructed!");
	}
}

public class Nine {
	@SuppressWarnings("unused")
	public static void main(String[] args){
		Stem test = new Stem();
	}
}
